package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
//@TableName("t_user") //映射当前实体类对应的数据库表t_user
public class User {
    //@TableId(type = IdType.AUTO) //设置主键id生成策略为Auto
    private Long id;
    private String name;
    //@TableField("pwd") //映射实体类属性对应的数据库表中字段名pwd
    private String password;
    @TableField(exist = false)//设置属性在数据库表中不存在
    private String info;
    private Integer age;
    private String tel;
    @TableLogic//逻辑删除
    private Integer deleted; //1:已删除  0: 未删除
}
